<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="Countries.aspx.cs" Inherits="Tathata.Web.Administration.Administration_Countries" %>

<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <h4>
        Countries</h4>
    <asp:GridView ID="gvCountries" runat="server" AutoGenerateColumns="False" Width="100%">
        <Columns>
            <asp:BoundField DataField="CountryID" HeaderText="CountryID" Visible="False"></asp:BoundField>
            <asp:TemplateField HeaderText="Name" ItemStyle-Width="20%">
                <ItemTemplate>
                    <a href="CountryDetails.aspx?CountryID=<%#Eval("CountryID")%>">
                        <%#Server.HtmlEncode(Eval("Name").ToString())%>
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="AllowsRegistration" HeaderText="Allows registration" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField DataField="AllowsBilling" HeaderText="Allows billing" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField DataField="AllowsShipping" HeaderText="Allows shipping" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField DataField="TwoLetterISOCode" HeaderText="Two letter ISO Code" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField DataField="ThreeLetterISOCode" HeaderText="Three letter ISO Code"
                HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="12%" ItemStyle-HorizontalAlign="Center">
            </asp:BoundField>
            <asp:BoundField DataField="NumericISOCode" HeaderText="Numeric ISO code" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField DataField="Published" HeaderText="Published" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField DataField="DisplayOrder" HeaderText="Display order" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="12%"
                ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="CountryDetails.aspx?CountryID=<%#Eval("CountryID")%>">Edit </a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br>
    <input type="button" onclick="location.href='CountryAdd.aspx'" value="Add new" id="btnAddNew"
        class="adminButton" />
    <br />
</asp:Content>
